package cn.tanghom.app.weibo.util;

import cn.tanghom.support.utils.HttpClientUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * 描述
 *
 * @author tanghom<tanghom@qq.com> on 2016/6/23
 */
public class Sina {



    public static void main(String[] args) throws Exception
    {
//        new OAuth4Code().main(null);
        String url = "https://api.weibo.com/2/statuses/update.json";
        Map<String, String> params = new HashMap<String, String>();
        params.put("access_token", "2.00ftVFRCckqPFE39d5c16eb2TUGFsB");
        params.put("status", "test");
        String s = HttpClientUtils.post(url , params);
        System.out.println("发了一条微博,返回结果：" + s);

    }
}
